Tailored Mutants Fit Bugs Better

نویسندگان

  • Miltiadis Allamanis
  • Earl T. Barr
  • René Just
  • Charles A. Sutton
چکیده

Mutation analysis measures test suite adequacy, the degree to which a test suite detects seeded faults (mutants): one test suite is better than another if it detects more mutants. The effectiveness of mutation analysis rests on the assumption that mutants are coupled with real faults—that is, mutant detection is strongly correlated with real fault detection. The work that validated this assumption also showed that a large portion of defects remain out of reach. We introduce tailored mutation operators to reach and capture these defects. Tailored mutation operators are built from and apply to an existing code base and its version history. They can, for instance, identify and replay errors specific to the project for which they are tailored. As our point of departure, we define tailored mutation operators for identifiers, which mutation analysis has largely ignored, because there are too many ways to mutate identifiers. Evaluated on the Defects4J data set, our new mutation operators allow mutation analysis to create mutants coupled to 14% more faults, compared to traditional mutation operators. These new mutation operators, however, quadruple the number of mutants, exacerbating the problem of mutant selection. To combat this problem, this paper proposes a new approach to mutant selection that focuses on the location at which to apply mutation operators and the unnaturalness of the mutated code. The results demonstrate that the location selection heuristics produce mutants more closely coupled to real faults for a given budget of mutation operator applications. In summary, this paper defines and explores tailored mutation operators, advancing the state of the art in mutation testing in two ways: 1) it suggests mutation operators that mutate identifiers and literals, extending mutation analysis to a new class of faults and 2) it demonstrates that selecting the location where a mutation operator is applied decreases the number of generated mutants without affecting the coupling of mutants and real faults. Keywords-mutation testing; submodular optimization; code naturalness

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Fitting genetic models using Markov Chain Monte Carlo algorithms with BUGS.

Maximum likelihood estimation techniques are widely used in twin and family studies, but soon reach computational boundaries when applied to highly complex models (e.g., models including gene-by-environment interaction and gene-environment correlation, item response theory measurement models, repeated measures, longitudinal structures, extended pedigrees). Markov Chain Monte Carlo (MCMC) algori...

متن کامل

Study of Organic Solvent Tolerance and Increased Antibiotic Resistance Properties in E. coli gyrA Mutants

   Ciprofloxacin is one of the most widely used antibiotics for the treatment of several infections caused by Gram-negative bacteria, like E. coli. Changes in gyrA, encoding GyrA subunit of DNA gyrase, cause the resistance to ciprofloxacin. Some ciprofloxacin resistant gyrA mutants acquired constitutive expression of marRAB operon due to the gaining mutations in marR, a repressor of this operon...

متن کامل

An Independent Validation of Vulnerability Discovery

Having a precise vulnerability discovery model (VDM) would provide a useful quantitative insight to assess software security. Thus far, several models have been proposed with some evidence supporting their goodness-of-fit. In this work we describe an independent validation of the applicability of six existing VDMs in seventeen releases of the three popular browsers Firefox, Google Chrome and In...

متن کامل

Study of Organic Solvent Tolerance and Increased Antibiotic Resistance Properties in E. coli gyrA Mutants

   Ciprofloxacin is one of the most widely used antibiotics for the treatment of several infections caused by Gram-negative bacteria, like E. coli. Changes in gyrA, encoding GyrA subunit of DNA gyrase, cause the resistance to ciprofloxacin. Some ciprofloxacin resistant gyrA mutants acquired constitutive expression of marRAB operon due to the gaining mutations in marR, a repressor of this operon...

متن کامل

WYSIWIB: A Declarative Approach to Finding Protocols and Bugs in Linux Code

Although a number of approaches to finding bugs in systems code have been proposed, bugs still remain to be found. Current approaches have emphasized scalability more than usability, and as a result it is difficult to relate the results to particular patterns found in the source code and to control the tools to be able to find specific kinds of bugs. In this paper, we propose a declarative appr...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1611.02516  شماره 

صفحات  -

تاریخ انتشار 2016